<template>
	<view class="Urecommend">
		<view class="code_bg">
			<image :src="qrcode" mode=""></image>
			<view class="code_name">请扫描二维码关注超盟U品小程序</view>
		</view>
	</view>
</template>

<script>
	import config from '../../util/config.js'
	export default {
		data() {
			return {
				qrcode:''
			}
		},
		onLoad: function(){
			let id = this.$storage('global').getItemSync('loginInfo').aid;
			this.qrcode = config.mengxiaoer.BASE_URL + config.mengxiaoer.RETAIL + config.mengxiaoer.VERSION_CODE + '/userupinqrcode?aid=' + id +'&timestamp='+new Date().getTime();
			console.log(this.qrcode)
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.Urecommend{
		height: 100%;
		background-color: #007AFF;
		padding-top: 20rpx;
		font-size: $uni-font-size-base;
		.code_bg{
			margin: 0 auto;
			width: 90%;
			height: 700rpx;
			background-image: url('../../static/img/ic_qrcodebg.png');
			background-size: 100% 100%;
			text-align: center;
			padding-top: 100rpx;
			image{
				width: 420rpx;
				height: 420rpx;
			}
			.code_name{
				margin-top: 80rpx;
			}
		}
	}
</style>
